package Example5;


import java.util.Observable;
import java.util.Observer;

public class TeacherObserver implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        System.out.println("教师收到消息:");
        System.out.println(o+" , "+ (String) arg);
    }
}
